package com.well.kernel.spring.converter;

import com.well.kernel.util.DateUtil;
import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger;
import org.springframework.core.convert.converter.Converter;

import java.util.Date;

/**
 * Copyright &copy; Well All rights reserved.
 * Author:Well
 * Date:2017/1/10
 * Description:
 * 日期转换器
 */

public class DateConverter implements Converter<String ,Date>
{
    private static Logger logger=Logger.getLogger(DateConverter.class);

    @Override
    public Date convert(String s) {
        return DateUtil.parse(s);
    }
}
